<!-- start: Main Menu -->
<div class="sidebar ">

    <div class="sidebar-collapse">
        <div class="sidebar-header t-center">
            <!--__ADMIN__/assets/img/logo1.png-->
            <a href="/" title="前台首页" class="Noline"><img class="text-logo" src="__HOME__/images/logo.png"><i class="fa fa-space-shuttle fa-3x blue"></i></a>
        </div>
        <style>
            #nav-wamp a{
                outline: none;
            }
        </style>
        <div class="sidebar-menu">
            <ul class="nav nav-sidebar" id="nav-wamp">
                <?php $adminMenu = C('adminMenu');?>
                <?php if($adminMenu):?>
                    <?php foreach($adminMenu as $v):?>
                        <li <?php if($v['controller'] == CONTROLLER_NAME && $v['action'] == ACTION_NAME && $v['opened'] == 1):?>class="active opened"<?php endif;?>>
                            <a href="{$v['url']}">
                                <i class="{$v['icon']}"></i>
                                <span class="text">{$v['name']}</span>
                                <?php if($v['triangle'] == 1):?>
                                <span class="fa fa-angle-down pull-right"></span>
                                <?php endif;?>
                            </a>
                            <?php if($v['chlidmenu']):?>
                                    <ul class="nav sub">
                                        <?php foreach($v['chlidmenu'] as $vv):?>
                                            <li <?php if($vv['controller'] == CONTROLLER_NAME && $vv['action'] == ACTION_NAME && $vv['opened'] == 1):?>class="active opened"<?php endif;?>><a href="{$vv['url']}"><i class="{$vv['icon']}"></i><span class="text">{$vv['name']}</span></a></li>
                                        <?php endforeach;?>
                                    </ul>
                            <?php endif;?>
                        </li>
                    <?php endforeach;?>

                <?php endif;?>


                <!--<li>
                    <a href="#"><i class="fa fa-bar-chart-o"></i><span class="text">内容管理</span> <span class="fa fa-angle-down pull-right"></span></a>
                    <ul class="nav sub">
                        <li><a href="page-activity.html"><i class="fa fa-comment"></i><span class="text">评论管理</span></a></li>
                        <li><a href="{:U('article/index')}"><i class="fa  fa-book"></i><span class="text">文章管理</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa  fa-calendar"></i><span class="text">分类管理</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa  fa-tags"></i><span class="text">标签管理</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa  fa-tasks"></i><span class="text">留言管理</span></a></li>
                    </ul>
                </li>-->


               <!-- <li>
                    <a href="#"><i class="fa fa-bars"></i><span class="text">菜单管理</span> <span class="fa fa-angle-down pull-right"></span></a>
                    <ul class="nav sub">
                        <li><a href="page-activity.html"><i class="fa fa-maxcdn"></i><span class="text">前台菜单</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa  fa-windows"></i><span class="text">后台菜单</span></a></li>
                    </ul>
                </li>-->

                <!--<li>
                    <a href="#"><i class="fa fa-cogs"></i><span class="text">网站设置</span> <span class="fa fa-angle-down pull-right"></span></a>
                    <ul class="nav sub">
                        <li><a href="page-activity.html"><i class="fa fa-envelope"></i><span class="text">邮箱设置</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa fa-credit-card"></i><span class="text">邮箱模板</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa fa-indent"></i><span class="text">网站信息</span></a></li>
                        <li><a href="page-inbox.html"><i class="fa fa-github"></i><span class="text">第三方登录</span></a></li>
                    </ul>
                </li>-->

            </ul>
        </div>
    </div>
    <div class="sidebar-footer"></div>

</div>
<!-- end: Main Menu -->